try:
    value_str = input("请输入一个数")
    value_int = int(value_str)
    if value_int % 2:
        print("奇数")
    else:
        print("偶数")

except TypeError as e:
    print('类型错误')

except ValueError as e:
    print("值错误")

except Exception as e:
    print("不知道哪错了，但是存在异常")

finally:
    print("无论对错  我胡汉三都会出来")

# 手动抛出异常
try:
    raise Exception("手动抛出")
except Exception as e:
    print(e, "啦啦啦")
